package io.gitee.zhangbinhub.admin

import io.gitee.zhangbinhub.acp.core.common.security.SM3Encrypt
import io.gitee.zhangbinhub.admin.entity.User
import io.gitee.zhangbinhub.admin.mapper.UserMapper
import org.junit.jupiter.api.Test

class TestSimple {
    @Test
    fun testDemo() {
        println("test successful!")
        val user = User()
        user.name = "123"
        val userVo = UserMapper.INSTANCE.entityToVo(user)
        println(userVo)

        val p1 = "00000000"
        val p2 = "88888888"
        println(SM3Encrypt.encrypt(SM3Encrypt.encrypt(p1) + "admin"))
        println(SM3Encrypt.encrypt(SM3Encrypt.encrypt(p2) + "admin"))
    }
}